<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    ul {
        list-style-type: none;
    }

    li::before {
        display:inline-block;
        width: 1rem;
        height: 1rem;
        margin-right: 0.25rem;
        content:"";
    }

    .open::before, .closed::before {
        background-size: 1rem 1rem;
        position: relative;
        top: 0.25rem;
        opacity: 0.3;
    }

    .open::before {
        background-image: url(img/down.png);
    }

    .closed::before {
        background-image: url(img/right.png);
    }

    .closed .closed::before, .closed .open::before {
        display: none;
    }
</style>
  <!-- <script src="./components/PopUpInfo.js" defer></script> -->
</head>
<body>
  <!-- <h1>popup-info Components</h1>
  <form>
    <div>
      <label for="cvc">Enter your CVC <popup-info img="./img/alt.png" text="Your card validation code (CdddVC) is an extra security feature — it is the last 3 or 4 numbers on the back of your card."></popup-info></label>
      <input type="text" id="cvc">
    </div>
  </form> -->

  <h1>ExpandingList Components</h1>
  <ul is="expanding-list">
    <li>UK
        <ul>
            <li>Yorkshire
                <ul>
                    <li>Leeds
                        <ul>
                            <li>Train station</li>
                            <li>Town hall</li>
                            <li>Headrow</li>
                        </ul>
                    </li>
                    <li>Bradford</li>
                    <li>Hull</li>
                </ul>
            </li>
        </ul>
    </li>
    <li>USA
        <ul>
            <li>California
                <ul>
                    <li>Los Angeles</li>
                    <li>San Francisco</li>
                    <li>Berkeley</li>
                </ul>
            </li>
            <li>Nevada</li>
            <li>Oregon</li>
        </ul>
    </li>
</ul>

<ul>
    <li>Not</li>
    <li>an</li>
    <li>expanding</li>
    <li>list</li>
</ul>
  <script src="./components/ExpandingList.js"></script>
</body>
</html>